/* This file is part of SpaceSim.
 
 SpaceSim is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 SpaceSim is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with SpaceSim.  If not, see <http://www.gnu.org/licenses/>. */

#include <vector>

#ifndef SYSTEM_H
#define SYSTEM_H

#include "planet.h"

class System {
private:
	int SystemSeed;
	float Mass;
	int PlanetAmount;
	std::string Name;
	std::vector<Planet> Planets;
public:
	System();	// constructors
	System(int seed);
	System(float _mass);
	void SetRandom(int seed);	// make a random system
	void SetMass(float _mass);	// getters and setters
	float GetMass();
	void AddPlanet(Planet _planet);
	void SetPlanet(Planet _planet, int _number);
	Planet GetPlanet(int _number);
	Planet *GetPlanetPtr(int _number);
	int GetPlanetAmount();
	std::vector<Planet> GetPlanets();
	std::string GetName();
	
	void MakeHub();
	
	void Update();
	void Draw();
	void DrawInfo();
	void DrawWarp(int num);
};

#endif